import request from '@/utils/request'

// 查询设备维护列表
export function listDeviceMaintain(query) {
  return request({
    url: '/energy/deviceMaintain/list',
    method: 'get',
    params: query
  })
}

// 查询设备维护详细
export function getDeviceMaintain(id) {
  return request({
    url: '/energy/deviceMaintain/' + id,
    method: 'get'
  })
}

// 新增设备维护
export function addDeviceMaintain(data) {
  return request({
    url: '/energy/deviceMaintain',
    method: 'post',
    data: data
  })
}

// 修改设备维护
export function updateDeviceMaintain(data) {
  return request({
    url: '/energy/deviceMaintain',
    method: 'put',
    data: data
  })
}

// 删除设备维护
export function delDeviceMaintain(id) {
  return request({
    url: '/energy/deviceMaintain/' + id,
    method: 'delete'
  })
}
